From 03f0a338a81688df368029b496f363ca84975b8c Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Tue, 24 May 2005 15:21:46 +0000 Subject: [PATCH] bitkeeper revision 1.1527.1.2 (4293468ayy5XU1yxu0QwnCQ83S5pbA) No more dependency of GNU Make 'eval' function, which is not present in older versions. Signed-off-by: Keir Fraser --- tools/xcutils/Makefile | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/tools/xcutils/Makefile b/tools/xcutils/Makefile index 8c350ce7c4..1dc682ff33 100644 --- a/tools/xcutils/Makefile +++ b/tools/xcutils/Makefile @@ -30,21 +30,14 @@ PROG_DEP = .*.d PROGRAMS = xc_restore -xc_restore_OBJS = xc_restore.o - -LDLIBS = -L$(XEN_LIBXC) -L$(XEN_LIBXUTIL) -lxc -lxutil +LDLIBS = -L$(XEN_LIBXC) -lxc -L$(XEN_LIBXUTIL) -lxutil .PHONY: all all: build build: $(PROGRAMS) -define PROGRAM_template -$(1): $$($(1)_OBJS) - $$(LINK.o) $$^ $$(LDLIBS) -o $$@ -ALL_OBJS += $$($(1)_OBJS) -endef - -$(foreach prog,$(PROGRAMS),$(eval $(call PROGRAM_template,$(prog)))) +$(PROGRAMS): %: %.o + $(LINK.o) $^ $(LDLIBS) -o $@ .PHONY: install install: build @@ -54,7 +47,7 @@ install: build clean: - $(RM) $(ALL_OBJS) $(PROGRAMS) + $(RM) *.o $(PROGRAMS) $(RM) $(PROG_DEP) -include $(PROG_DEP) -- 2.30.2